﻿
var app = new Vue({
    el: '#app',
    data: {
        title: '报餐系统登录',
        code: '',
        name: '',
        pwd: '',
        cpwd: ''
    },
    methods: {
        OnNameInput: function () {
            console.log(app.name);
            getName(app.name, true);
        },

        OnPwdInput: function () {
            console.log(app.pwd);
            getPwd(app.pwd, true);
        },

        login: function () {
            optLogin("", true);
        }
    }
});